/**
 * 特有图层集。
 *
 * @since 2015-07-14
 */

@keyframes kf-bgShowIn {
    from {
    	opacity: 0;
    	filter:alpha(opacity=0);
    }
    to {
    	opacity: 0.4;
    	filter:alpha(opacity=40);
    }
}
//背景遮罩
.ks-ext-mask {
	animation: kf-bgShowIn 0.2s ease;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9998;
	background-color: #000;
	opacity: 0.4;
	filter:alpha(opacity=40);
}


@keyframes kf-showIn {
    from {
    	opacity: 0.5;
    	filter:alpha(opacity=50);
    }
    to {
    	opacity: 1;
    	filter:alpha(opacity=100);
    }
}
/**
 * 图层基础样式。
 *
 * @since 2015-10-08
 * @author dongxiaochai@163.com
 */
.base-overlay {
	animation: kf-showIn 0.3s ease;
	position: fixed;
	left: 50%;
	top: 50%;
	margin-left: -50%;
	z-index: 9999;
	line-height: 23px;
	color: #333;
	font-size: 18px;
	background: #FFF; 
	border-radius: 5px;	
    overflow: hidden;
	// text-align: center;

	.content-wrapper {
		text-align: center;
		font-size: 16px;
		// white-space: nowrap;
	}
	.ks-title{
		vertical-align: middle;
		z-index: 1000;
		text-align: center;
		font-weight: 500;
		// line-height: 1.5;
		/* margin-bottom: 20px; */
		word-break: break-all;
		white-space: normal;
	}
	.ks-ext-close-x {
	    position: absolute;
	    right: 12px;
	    top: 15px;
	    width: 15px;
	    height: 15px;
	    cursor: pointer;
	    background: url(../lib/overlay/icon.png) 0 -70px no-repeat;
	    font-size: 0;
	}
}

// @keyframes kf-say {
//     from {
//         transform: scale(1.3);
//     }
//     to {
//         transform: scale(1);
//     }
// }
/**
 * 提示图层。
 *
 * @since 2015-07-14
 * @author dongxiaochai@163.com
 */
.say-overlay{
	// animation: kf-say 0.2s ease;
	position: relative;
    padding: 40px 40px 40px 80px;
	max-width: 250px;
	line-height: 25px;
	.ks-title{
		font-size: 18px;
    	font-weight: normal;
	    word-wrap: break-word;
	    word-break: break-word;
	    text-align: left;
	    line-height: 1.6;
	}
	&.warnning{
		width: auto;
		max-width: 220px;
	}
	.icon{
		position: absolute;
		left: 30px;
		top: 40px;
	    width: 35px;
	    height: 35px;
	    background: url(../lib/overlay/icon.png) 0 -35px no-repeat;
	    margin: 0 10px 0 0;

		&.success{
		    background-position: 0 0;
		}
	}
	// &.success .icon,
	// &.error .icon {
	// 	display: block;
	// 	width: 36px;
	// 	height: 36px;
	// 	background: url(sucsessT.png) no-repeat;
	// 	background: -webkit-image-set(url(sucsessT.png) 2x, url(sucsessT@3x.png) 3x) no-repeat;
	// 	background-size: 36px auto;
	// 	margin: 0 auto 10px auto;
	// }
}

/**
 * 确认对话框。
 * 
 * @since 2012-12-05
 * @author dongxiaochai@163.com
 */
.confirm-overlay{
	.content-wrapper{
	    padding: 35px 40px 20px 40px;
		min-width: 150px;
		max-width: 350px;
	    text-align: center;
	    white-space: nowrap;
	}
	.contents{
	    // width: 195px;
	    margin: 0 auto;
	    // padding: 23px 0;
	    line-height: 25px;
	    text-align: left;
	    .ks-title{
		    text-align: center;
			font-size: 20px;
		    // line-height: 35px;
		    padding-bottom: 10px;
   			// margin-bottom: 15px;
   			&+.ks-desc{
   				margin-top: 5px;
			}
		}
		.ks-desc{
		    word-wrap: break-word;
		    word-break: break-word;
		    white-space: normal;
		}
	}
	.actions {
		height: 43px;
		line-height: 43px;
		margin-top: 10px;
		.ks-button{
		    display: inline-block;
		    *display: inline;
		    *zoom:1;
		    font-size: 14px;
		    border:1px solid #e53e3c;
		    border-radius: 5px;
		    color: #fff;
		    background-color: #e53e3c;
		    text-align: center;
		    height: 30px;
		    line-height: 30px;
		    padding: 0 20px;
		    &.cancel{
			    border-color: #ccc;
			    color: #666;
			    background-color: #fff;
			    margin-right: 20px;
			}
		}
	}
}

/**
 * 加载中
 */
.loading-overlay{
	// animation: kf-say 0.2s ease;
    padding: 25px 10px;
    width: 130px;
	min-width: 130px;
	line-height: 25px;
	.ks-title{
		font-size: 16px;
    	font-weight: normal;
	}
	.icon-box{
		height: 30px;
		margin: 5px 0 10px 0;
		position: relative;
		.loading-icon{
			position: absolute;
			left: 50%;
			top: 0;
			margin-left: -15px;
			width: 30px;
			height: 30px;
			background: url(../lib/overlay/loading.png) no-repeat;
			background-size: 30px auto;
			// margin: 10px auto; 
			transform-origin: 50% 50%;
	        // transform: translateZ(0);
	    	animation: kf-loading 1s linear infinite;
			@keyframes kf-loading {
			    0% {
			        transform: rotate(0deg);
			    }
			    100% {
			        transform: rotate(360deg);
			    }
			}
		}
	}
}

/**
 * 自定义弹窗
 */
.dialog-overlay{
	.ks-ext-close-x {
	    top: 20px;
	    right: 20px;
	}
	.ks-contentbox {
		font-size: 14px;
		color: #666;
	    padding: 55px 0 0 0;
	    background: #fff;
	    min-height:50px;
	    // width: 342px;
		.ks-stdmod-header {
			position: absolute;
			left: 0;
			top: 0;
			width: 100%;
		    background-color: #f2f2f2;
		    color: #333;
		    font-size: 20px;    
		    height: 55px;
		    line-height: 55px;
		    *zoom:1;
		    display: block;
		    min-height: 0;
		}
		.ks-stdmod-header,
		.ks-stdmod-body{
		    padding: 0 30px;
		}
	}
}

/**
 * 表单警示
 */
.tip-overlay{
    white-space: nowrap;
    padding: 12px 18px;
    border-radius: 5px;
    color: #FFF;
    background-color: rgba(0,0,0,0.8);
    box-shadow: 1px 1px 5px 1px rgba(0,0,0, 0.5);
    font-size: 14px;
}